home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- Caption = "Form1"
- ClientHeight = 4635
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 7365
- Height = 5040
- Left = 1035
- LinkTopic = "Form1"
- ScaleHeight = 4635
- ScaleWidth = 7365
- Top = 1140
- Width = 7485
- Begin CommandButton Command3
- Caption = "On The Fly"
- Height = 555
- Left = 6120
- TabIndex = 4
- Top = 4020
- Width = 1095
- End
- Begin CommandButton Command2
- Caption = "Add Text"
- Height = 555
- Left = 4860
- TabIndex = 3
- Top = 4020
- Width = 1095
- End
- Begin CommandButton Command1
- Caption = "Create List"
- Height = 555
- Left = 3600
- TabIndex = 2
- Top = 4020
- Width = 1095
- End
- Begin TextBox Text1
- Height = 3735
- Left = 3600
- MultiLine = -1 'True
- TabIndex = 1
- Top = 240
- Width = 3615
- End
- Begin ListBox List1
- Height = 4320
- Left = 60
- TabIndex = 0
- Top = 240
- Width = 3435
- End
- Option Explicit
- Sub Command1_Click ()
- Dim temp$
- temp$ = Text1.Text
- tlCreate List1, temp$
- End Sub
- Sub Command2_Click ()
- Dim temp$
- temp$ = NewLine + "This is a 2nd root"
- temp$ = temp$ + NewLine + tabs + "this are some more branches"
- temp$ = temp$ + NewLine + tabs + tabs + "leaf"
- temp$ = temp$ + NewLine + tabs + tabs + "leaf"
- temp$ = temp$ + NewLine + tabs + "branch"
- temp$ = temp$ + NewLine + tabs + tabs + "leaf"
- temp$ = temp$ + NewLine + tabs + tabs + "leaf"
- temp$ = temp$ + NewLine + tabs + tabs + "branch"
- temp$ = temp$ + NewLine + tabs + tabs + tabs + "leaf"
- Text1.Text = Text1.Text + temp$
- Command2.Enabled = False
- End Sub
- Sub Command3_Click ()
- tlAddLine "My New Root", 0, alNew, List1
- tlAddLine "branch", 1, alAdd, List1
- tlAddLine "leaf", 2, alAdd, List1
- tlAddLine "leaf", 1, alAdd, List1
- tlAddLine "branch", 1, alAdd, List1
- tlAddLine "leaf", 2, alAdd, List1
- tlAddLine "branch", 2, alAdd, List1
- tlAddLine "leaf", 3, alAdd, List1
- tlAddLine "leaf", 2, alAdd, List1
- tlAddLine "leaf", 2, alAdd, List1
- tlAddLine "leaf", 1, alAdd, List1
- tlAddLine "New Root", 0, alAdd, List1
- tlAddLine "leaf", 1, alCreate, List1
- End Sub
- Sub Form_Load ()
- Dim temp$
- NewLine = Chr$(13) + Chr$(10)
- tabs = Chr$(9)
- temp$ = "This is the root"
- temp$ = temp$ + NewLine + tabs + "This is a leaf"
- temp$ = temp$ + NewLine + tabs + "This is another leaf"
- temp$ = temp$ + NewLine + tabs + "This is a branch with leaves"
- temp$ = temp$ + NewLine + tabs + tabs + "This is a leaf"
- temp$ = temp$ + NewLine + tabs + tabs + "This is another one"
- temp$ = temp$ + NewLine + tabs + "Add some new branches with"
- temp$ = temp$ + NewLine + tabs + "[ENTER] and"
- temp$ = temp$ + NewLine + tabs + "[Ctrl]+[TAB]"
- temp$ = temp$ + NewLine + tabs + "or change the existing ones"
- temp$ = temp$ + NewLine + tabs + "..."
- Text1.Text = temp$
- End Sub
- Sub List1_DblClick ()
- If tlDblClick(List1) Then
- MsgBox "This was a DblClick on the leaf:" + NewLine + List1.Text
- End If
- End Sub
-